package cn.edu.scau.cmi.zhangjinchuan.simpleFactoryMethod;
import cn.edu.scau.cmi.zhangjinchuan.simpleFactoryMethod.domain.*;


public class MeatFactory {
	
	public static Meat getMeat(String meatType) {
		Meat meat = null;
		switch (meatType) {
		case "pork":
			meat = new Pork();
			break;

		case "beef":
			meat = new Beef();
			break;
		case "chicken":
			meat = new Chicken();
		}
		return meat;
	}

}
